<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
<!-- 	<title>百度地图初步测试-肖平</title> -->
	<title>百度地图初步测试</title>
	<style type="text/css">
		*{margin: 0;padding: 0;box-sizing:border-box;list-style: none;outline: none;cursor: pointer;}
		html,body{width: 100%;height: 100%;}
		#nav{display: flex;height: 40%;}
		.navSearch,.navGuangzWc{flex:1;display: inline-block;text-decoration:none;color:white;font:bold normal 66px microsoft yahei;padding-top: 10%;} 
		.navSearch{
			background-color: teal;
			text-align: center;
		}
		.navGuangzWc{
			background-color: pink;
			text-align: center;
		}
		iframe{width: 100%;height: 58%;}
	</style>
</head>
<body>
	<div id="nav">
		<a href="GeolocationControl.html" class="navSearch">搜索地图</a>
		<a href="wenchongLocation.html" class="navGuangzWc">文冲导航</a>
	</div>
	<iframe id="list_iframe" src="http://m.baidu.com"></iframe>
	<div class="baiduSearch"></div>
	<script type="text/javascript" defar>
		var bdSearchs=document.getElementsByTagName('iframe')[0].innerHTML;
		console.log("bdSearchs--------"+bdSearchs);
		console.log("iframe--------"+document.getElementsByTagName('iframe')[0]);
		console.dir("iframe2122--------"+document.getElementById("list_iframe").contentWindow.document.getElementsByTagName('a'));
	</script>
</body>
</html>
